package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.MenuButton;
import com.zhijian.medical.entity.vo.request.MenuButtonSearchVo;
import com.zhijian.medical.entity.vo.response.MenuButtonVo;

import java.util.List;

public interface MenuButtonMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MenuButton record);

    int insertSelective(MenuButton record);

    MenuButton selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MenuButton record);

    int updateByPrimaryKey(MenuButton record);

    int count(MenuButtonSearchVo menuButtonSearchVo);

    List<MenuButtonVo> selectList(MenuButtonSearchVo menuButtonSearchVo);

    MenuButtonVo selectVoById(Long id);

    /**
     * 根据菜单id删除
     *
     * @param menuId
     * @return
     */
    boolean deleteByMenuId(Long menuId);
}